<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ page session="false"%>
<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>会员登陆</title>
        <META http-equiv="Content-Type" content="text/html;charset=UTF-8" />
        <link href="<c:url value="/resources/css/normalize.css" />" rel="stylesheet" type="text/css" />
		<link href="<c:url value="/resources/css/lib.css" />" rel="stylesheet" type="text/css" />
		<link href="<c:url value="/resources/css/style.css" />" rel="stylesheet" type="text/css" />
        
        <script src="<c:url value="/resources/jquery/jquery.js" />"></script>
	</head>
	<body>
		<jsp:include page="/resources/static/menu.jsp"></jsp:include>
		<div class="box3">
			<div class="loginBox">
				<div class="title">会员登陆</div>
				<div class="main">
					<div class="left">
					<form method="post" action="<c:url value="/login" />">
						<table class="loginTable">
							<tr>
								<td align="right" width="25%">用户名:</td>
								<td width="75%"><input name="username" class="input-style1" /></td>
							</tr>
							<tr>
								<td align="right">密码:</td>
								<td>
									<input name="password" type="password" class="input-style1" />
									<a href="#">忘记密码?</a>
								</td>
							</tr>
							<tr>
								<td></td>
								<td class="red">${message}</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td>
									<input type="checkbox" name="rememberUserName" /><label for="rememberUserName">记住密码</label>
									<input type="checkbox" name="autoLogin" /><label for="autoLogin">自动登录</label>
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td>
									<input type="submit" value="登陆" />
								</td>
							</tr>
						</table>
					</form>
					</div>
					<div class="right mt10">
						<p class="b">还不是qmt580会员?</p>
						<p>现在就注册成为qmt580的用户，便可发布媒体信息.</p>
						<div>
							<input type="button" id="btnRegister" value="注册新会员" />
						</div>
					</div>
				</div>
			</div>
		</div>
		<jsp:include page="/resources/static/footer.jsp"></jsp:include>
	</body>
</html>
<script>
$(document).ready(function(){
	$('#btnRegister').click(function(){
		document.location.href = '<c:url value="/register" />';
	});
});
</script>
